-- GENERATED SPELL FOR [Wrathfin Sentry] --


function spell0_17727(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17727', 8263, 1)
end

function spell1_17727(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17727', 578, 1)
end

function Sorts_17727(pUnit, Event)
local choix_sorts_17727 = math.random(0, 1)
if choix_sorts_17727 == 0 then
pUnit:RegisterEvent('spell0_17727', 1, 1)
end
if choix_sorts_17727 == 1 then
pUnit:RegisterEvent('spell1_17727', 1, 1)
end
end

function mob17727_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17727', math.random(1500, 3000), 1)
end

function mob17727_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17727_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17727_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17727, 1, 'mob17727_Action')
RegisterUnitEvent(17727, 2, 'mob17727_Leave')
RegisterUnitEvent(17727, 3, 'mob17727_Kill')
RegisterUnitEvent(17727, 4, 'mob17727_Die')
